﻿using UnityEngine;
using System.Collections;
using DG.Tweening;
using LitJson;
using tcpCommon;
public class loginBGShow : MonoBehaviour {



	// Use this for initialization
	void Start () {

        ClientTcp.Instance.ConnectNet();

       Tweener tweener = this.transform.DOScale(1.4f,5);
       Invoke("TweenerEnd", 5f);
    }

    void OnEnable()
    {
        NotficationCenter.Instance.AddNotificationEvent("key",hello);
    }

    void hello(Notification node)
    {
       /* Debug.LogError("node ====>" + (string)node.data);*/
    }

    void OnDestroy()
    {
        NotficationCenter.Instance.RemoveNotificationEvent("key",hello);
        ClientTcp.Instance.shotThead();
    }
	
	bool TweenerEnd()
    {
        return true;
    }
}
